package com.xrh.xdemo.api.request.addRequest;

import javax.validation.constraints.NotBlank;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.xrh.core.annotation.EnumValidation;
import com.xrh.xdemo.api.enums.ConfigTypeEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class SysDictSaveRequest{

	/**配置类型 */
	@ApiModelProperty("配置类型")
	@NotBlank(message = "配置类型不能为空")
	@EnumValidation(value = ConfigTypeEnum.class , message = "配置类型不合法" )
	private String type;

	/**配置信息 */
	@ApiModelProperty("配置信息")
	@NotBlank(message = "配置信息不能为空")
	private String configInfo;

	/**业务key */
	@ApiModelProperty("业务key")
	private String businessKey;

}
